<?php
/**
 * User: YL
 * Date: 2019/09/12
 */

namespace restful\commands;

use Illuminate\Routing\Console\MiddlewareMakeCommand;
use restful\commands\traits\GetStudPath;

class MakeMiddleware extends MiddlewareMakeCommand
{
    use GetStudPath;

    protected function getStub()
    {
        return $this->getStudPath('middleware.stud');
    }

    protected function getDefaultNamespace($rootNamespace)
    {
        return $rootNamespace . '\Middleware';
    }
}
